<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectUrlTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        //项目链接表
        Schema::create('project_url', function(Blueprint $table)
        {
            $table->increments('id') ;                      //链接的id
            $table->unsignedInteger('project_id') ;         //项目id
            $table->string('url_type') ;                    //链接的类型
            $table->string('url_name') ;                    //链接地址
            $table->softDeletes();
            $table->timestamps();
        });
    }

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
        Schema::drop('project_url');
	}

}
